"use client"; import { getWheelApi, getWheelReceiveApi, WheelsType } from "@/api/cashWheel"; import Box from "@/components/Box"; import { WheelClient } from "@/components/Box/WheelModal"; import { Link } from "@/i18n/routing"; import { useUserInfoStore } from "@/stores/useUserInfoStore"; import { server } from "@/utils/client"; import { copyText, timeFormat } from "@/utils/methods"; import { useCountDown } from "ahooks"; import { Popup, Toast } from "antd-mobile"; import clsx from "clsx"; import { useTranslations } from "next-intl"; import Image from "next/image"; import { createContext, FC, Fragment, useContext, useEffect, useState } from "react"; import LotteryWheel from "./LotteryWheel"; import styles from "./style.module.scss"; interface Props { // wheel: WheelsType; allHistory: any[]; phones: any[]; } interface ContextType extends WheelsType, Props { handler: () => void; } const WheelContext = createContext>({}); const CashMainCom = () => { return (
{" "} R$ 94.15
SACAR{" "}
94.15%
{" "} Ainda e necessário 5.85 para realizar do saque{" "}
); }; const DrawMain1 = () => { return (
{/**/} {/**/} {/**/} {/*
*/} {/* */} {/*
*/} {/**/} {/*
*/} {/*
*/}
); }; const DrawContent = () => { return (
Expira em 2d 19:18:13
Convide amigos para ajudar com saques
); }; type Dtltype = "left" | "right"; const LeftListClient = () => { const wheel = useContext(WheelContext); return ( <>
{wheel.allHistory && wheel.allHistory.length > 0 && wheel.allHistory?.map((item, index) => { return (
{item.phone_number} {timeFormat(item.receive_time, "br", undefined, true)}
+100 R$
); })}
); }; const getSelfHistoryApi = () => { return server.request({ url: "/v1/api/user/turntable/self_receive", method: "POST", }); }; const RightListClient = () => { const [selfHistory, setSelfHistory] = useState([]); useEffect(() => { getSelfHistoryApi().then((res) => { setSelfHistory(res.data); }); }, []); return (
{selfHistory.map((item, index) => { return (
+{item.lose_amount}
R$
{" "} {timeFormat(item.receive_time, "br", undefined)}
{"group"} +{item.count_person}
); })}
); }; const Report = () => { const [activeTab, setActiveTab] = useState("left"); const handler = (dtl: Dtltype) => { setActiveTab(dtl); }; const activeClass = clsx( styles.vanTabItem, activeTab === "left" ? styles.vanTabAcriveLeft : styles.vanTabAcriveRight ); return (
handler("left")} > Relatório
handler("right")} > Minha Referencia
{activeTab === "left" ? : }

Regras

  • 1.Você pode iniciar um saque quando o valor acumulado atingir 100 BRL.
  • 2.Convidar amigos para se registrarem no 9f.com irá ajudá- lo a sacar dinheiro rapidamente.
  • 3. Cada usuário receberá uma única rodada grátis por dia.
  • 4.Cada usuário tem um período de validade de 3 dias para cada atividade e pode participar da atividade várias vezes.
  • 5.Se você receber um bônus de dinheiro extra, pode jogar jogos de graça e ganhar ainda mais dinheiro real.
  • 6.Se voce nao retirar o dinheiro dentro de 3 dias,ele ser perdido.
); }; const WheelWallet = () => { const user = useUserInfoStore((state) => state.userInfo); const wheel = useContext(WheelContext); return (
Conta {user.user_phone}
R$ {wheel.activate?.amount || 0}
Faltam para O saque R${(wheel.num! - wheel.activate?.amount! || 0).toFixed(2)}
{/*top*/}
); }; const DrawMain = () => { const wheel = useContext(WheelContext); return (
); }; const CountdownClient = () => { const wheel = useContext(WheelContext); const [_, formattedRes] = useCountDown({ leftTime: wheel.activate?.end_time! * 1000 - Date.now(), }); const { days, hours, minutes, seconds } = formattedRes; const receiveHandler = () => { getWheelReceiveApi({ unique_id: wheel.not_receive![0].unique_id }).then((res) => { wheel.handler && wheel.handler(); }); }; return (
{wheel.not_receive && wheel.not_receive.length > 0 ? (
{"receive"}
) : ( <> {String(days).padStart(2, "0")}:{String(hours).padStart(2, "0")}: {String(minutes).padStart(2, "0")}:{String(seconds).padStart(2, "0")} )}
); }; const phones = Array(9) .fill(0) .map((_, i) => { const num = `557894567${Math.floor(Math.random() * 1000) .toString() .padStart(4, "0")}`; return num; }); const ShareClient = () => { const [visible, setVisible] = useState(false); const wheel = useContext(WheelContext); const user = useUserInfoStore((state) => state.userInfo); const [currentPhoneIndex, setCurrentPhoneIndex] = useState(0); const shareUrl = `${process.env.NEXT_PUBLIC_SHARE_URL}/br/sharecwbr?turntable=${wheel.activities && wheel.activities[0].id}&user=${user.id}&time=${wheel.activate?.end_time}`; const url = encodeURIComponent(`${shareUrl}`); const text = encodeURIComponent(`Receba 100 BRL de graça,Pix SAQUE RÁPIDO`); const t = useTranslations(); const SHARE_SOURCE = [ { icon: "/summary/Facebook.png", label: "Facebook", shareUrl: `https://www.facebook.com/sharer/sharer.php?u=${url}&t=${text}`, }, { icon: "/summary/WhatsApp.png", label: "WhatsApp", shareUrl: `https://api.whatsapp.com/send?text=${text}`, }, { icon: "/summary/Telegram.png", label: "Telegram", shareUrl: `https://t.me/share/url?url=${url}&text=${text}`, }, { icon: "/summary/Twitter.png", label: "Twitter", shareUrl: `https://twitter.com/intent/tweet?text=${text}`, }, { icon: "/summary/Email.png", label: "Email", shareUrl: `mailto: ?&subject=&cc=&bcc=&body=${url}%0A${text}`, }, ]; const copy = (text: string) => { copyText(text); Toast.show({ icon: "success", content: t("SummaryPage.copySuc"), maskClickable: false }); }; const handler = () => { const current = wheel.phones?.[currentPhoneIndex]; window.open(`https://wa.me/${current}`); setCurrentPhoneIndex((value) => (value += 1)); }; return ( <>
Compartilhe mais, saque mais rápido.
setVisible(true)} > {"share"}
{ setVisible(false); }} onClose={() => { setVisible(false); }} showCloseButton bodyStyle={{ background: "#fff" }} >

1.Convide amlgos para ajudar com saques

{SHARE_SOURCE.map((source, index) => { return ( {"Mais"}

{source.label}

); })}

Compartilhe este link de indicação com seus amigos

{shareUrl} copy(shareUrl)} > {t("SummaryPage.Cópia")}

2.Enviar convite para jogador aleatório ajudar

{wheel.phones?.map((phone, index) => { return ( {phone} ); })}

Enviar Mensagem

no WhatsAPP

{"whatsApp"}

Enviar Mensagem

SMS

{"whatsApp"}
); }; const CashWheelClient: FC = (props) => { const getWheelData = async () => { return getWheelApi().then((res) => { if (res.code === 200) { setValues((staticValue) => { return { ...staticValue, ...res.data }; }); } return res; }); }; const [values, setValues] = useState>({ num: 100, allHistory: props.allHistory || [], phones: props.phones || [], handler: getWheelData, }); useEffect(() => { getWheelData(); }, []); return ( <> {/*倒计时*/} {/*分享*/} {values.activate && values.activate?.end_time > 0 ? : null}
{/**/} {/**/} {/**/}
); }; export default CashWheelClient;